TimePunch Work Model Service
CoreTimeDto
This class contains the start and end of core time. It is used to set the core working time globally in TimePunch.
Datatype | Name | Description |
---|---|---|
DateTime? | BeginOfCoreTime | That’s the time when the user must be logged in latest. |
DateTime? | EndOfCoreTime | That’s the time when the user is allowed to log out without having a core time violation. |
WorkModelDto
This class contains the defintion of one working time model.
Datatype | Name | Required | Description |
---|---|---|---|
DateTime | ValidSince | Yes | The date from which of the work model is valid |
List\<WorkdayDto> | WorkdayModels | Yes | List of the workday models |
bool | IsDefaultModel | True, if the given workmodel is the default (or fallback) work model of the user | |
Bool | IsShortTimeWork | True, if the given workmodel defines a short-time work model |
WorkdayDto
This class contains the definition for one workday.
Datatype | Name | Description |
---|---|---|
DateTime | Date | Defines the date of the workday model |
Bool | HasToWork | True, if the day is marked as a workday. |
DateTime | BeginOfWork | Begin of the defined time frame. |
double | WorkingTime | The defined working time of the day |
Double | FractionOfDay | Gets a value of 0,5 or 1 in order to define the fraction of the day of the workday. |
Double | ForceBreakAbove | The amount of worktime above the break shall be added |
Bool | IsBreakDefined | True, if a break has been defined |
double | BreakTime | Break that will be added if the actual working time is above the forced Break time (ForceBreakAbove) and a break has been defined(IsBreakDefined is true) |
Double | EstimatedWorkingTime | The estimated working time for the given date. This flag combines (HasToWork) with (WorkingTime) |
Double | EstimatedBreakTime | The estimated break time for the given date. This flag combines (HasToWork) with (BreakTime) |
Double | EstimatedDuration | Addition of EstimatedWorkingTime and EstimatedBreakTime |
Double | EstimatedDurationAsDay | Defines if the duration is a 0,5 or 1 |
Bool | EstimatedHasToWork | True, if HasToWork is true and the day is not a public holiday (!isPublicHoliday) |
Bool | IsPublicHoliday | True, if the day is a public holiday |
Bool | IsShortTimeWorkToday | True, if a short time work has been defined for the given workday |
WorkdayDto | RegularWorkday | Reference to a WorkdayDto if the given day is a short time work. So the regular workday is defined there. |
Double | WorktimeOffset | This is a daily offset to the worktime. With that offset the user can get additional worktime without working. |
Bool | DynamicWorktime | If dynamic worktime is set to true, there is no estimated worktime. The user can work as long and how much as he wants to. |
DateTime? | BeginOfCoreTime | That’s the time when the user must be logged in latest. |
DateTime? | EndOfCoreTime | That’s the time when the user is allowed to log out without having a core time violation. |